package com.ruoyi.system.domain.module.event;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 维保商企业对象 event_maintenance_company
 *
 * @author ruoyi
 * @date 2023-12-26
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("event_maintenance_company")
public class EventMaintenanceCompany implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * $column.columnComment
     */
    private Integer propertyId;

    /**
     * $column.columnComment
     */
    private Integer estateId;

    /**
     * 维保企业
     */
    private String companyName;

    /**
     * 负责人姓名
     */
    private String leaderName;

    /**
     * 负责人手机号
     */
    private String leaderPhone;

    /**
     * 统一社会信用代码
     */
    private String creditCode;

    /**
     * 联系地址
     */
    private String address;

    /**
     * 服务状态 0 - 未开始服务  1 - 服务中 2 - 已过期
     */
    private Integer state;

    /**
     * 添加时间
     */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

	/**
	 * 合约开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT)
	private Date serviceBeginTime;

	/**
	 * 合约结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT)
	private Date serviceEndTime;

    /**
     * 添加人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

	@TableField(exist = false)
	private String propertyName;

	@TableField(exist = false)
	private String estateName;

}
